package com.opages.transaction.message.common.domain;

/**
 * 调用操作码
 */
public enum HttpCode {

    SUCCESS(200, "操作成功"), //
    FAILED(500, "操作失败"), //
    VALIDATE_FAILED(400, "参数检验失败"), //
    NOT_EXIST(404, "不存在"), //
    RE_REGISTER(449, "重新注册"), //
    UNAUTHORIZED(401, "暂未登录或token已经过期"), //
    FORBIDDEN(403, "没有相关权限");

    private int code;
    private String message;

    private HttpCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
